package com.neethi.service.impl;

import com.neethi.dao.PracticeAreaDao;
import com.neethi.model.PracticeArea;
import com.neethi.service.PracticeAreaManager;

public class PracticeAreaManagerImpl extends GenericManagerImpl<PracticeArea, Long> implements PracticeAreaManager{
	
	private PracticeAreaDao practiceAreaDao;
	
	public PracticeAreaManagerImpl(PracticeAreaDao practiceAreaDao){
		super(practiceAreaDao);
		this.practiceAreaDao = practiceAreaDao;
	}
	
	public PracticeAreaDao getPracticeAreaDao() {
		return practiceAreaDao;
	}

	public void setPracticeAreaDao(PracticeAreaDao practiceAreaDao) {
		this.practiceAreaDao = practiceAreaDao;
	}

	public PracticeArea getPracticeArea(String areaName) {
		return practiceAreaDao.getPracticeAreaByName(areaName);
	}

}
